<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Title</title>
</head>
<body>
<script>
    // 1.ReferenceError 引用变量不存在
    // Uncaught ReferenceError: a is not defined
    // console.log(a)

    // 2.TypeError 数据类型不正确的错误
    // let b = null
    // console.log(b.xxx)
    // Uncaught TypeError: Cannot read property 'xxx' of null

    // 3.RangeError 数据值不在所允许的范围内
    // Uncaught RangeError: Maximum call stack size exceeded
    // function fn() {
    //     fn()
    // }
    // fn()

    // 4.SyntaxError 语法错误
    // Uncaught SyntaxError: Unexpected string
    // const c = """"
</script>
</body>
</html>
